package system_code.Test;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

public class demo2 {
    public static void main(String[] args) throws IOException {
        Writer writer = new FileWriter("b.txt");
        writer.write("what do you mean?");
        writer.close();
        //后续操作同样会覆盖之前的操作
        Writer writer1 = new FileWriter("b.txt");
        writer1.write("\n yes");
        writer1.close();
    }
}
